package test1;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author: mornd
 * @dateTime: 2023/5/16 - 13:56
 */

//@Component
//@Aspect
//@Order(0)
public class MyAspect {

    @Around("execution(* transfer(..))")
    public Object around(ProceedingJoinPoint joinPoint) {
        try {
            System.out.println("before log........");
            return joinPoint.proceed();
        } catch (Throwable e) {
            e.printStackTrace();
            return null;
        }
    }
}
